package com.awa.usercenter.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * 错误码
 *
 */
@Getter
@AllArgsConstructor

public enum Code {

    SUCCESS(1, "ok", ""),
    FAILED(0, "出现异常", ""),
    PARAMS_ERROR(40000, "请求参数错误", ""),
    NULL_ERROR(40001, "请求数据为空", ""),
    NOT_LOGIN(40100, "未登陆", ""),
    NO_AUTO(40101, "无权限", ""),
    SYSTEM_ERROR(50000, "系统内部异常", "");

    private int code;

    /**
     * 状态码信息
     */
    private String message;

    /**
     * 状态码描述（详情）
     */
    private String description;



}
